The System.Security.Cryptography.Pkcs.SignedCms.CheckHash method verifies the data integrity of the CMS/PKCS #7 message. System.Security.Cryptography.Pkcs.SignedCms.CheckHash is a specialized method used in specific security infrastructure applications in which the subject uses the System.Security.Cryptography.Pkcs.SubjectIdentifierType.HashOnly enumeration member when setting up a System.Security.Cryptography.Pkcs.CmsSigner object. System.Security.Cryptography.Pkcs.SignedCms.CheckHash does not authenticate the author nor sender of the message because this method does not involve verifying a digital signature. For general-purpose checking of the integrity and authenticity of a CMS/PKCS #7 message, use the System.Security.Cryptography.Pkcs.SignedCms.CheckSignature(System.Boolean) or System.Security.Cryptography.Pkcs.SignedCms.CheckSignature(System.Security.Cryptography.X509Certificates.X509Certificate2Collection,System.Boolean) methods.